﻿<%@ Page Title="Страеница редактирования трека!" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Track.aspx.cs" Inherits="Track" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script src="../audio-player/audio-player.js" type="text/javascript"></script>
    <script type="text/javascript">
        AudioPlayer.setup("../audio-player/player.swf", {
            width: 300,
        });  
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Редактируйте...
    </h2>
    
    <asp:ListView ID="ChangedTrack" runat="server">
        <LayoutTemplate>
            <div id="itemPlaceholder" runat="server">
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <div>
                <h3 class="m_title">
                    <%#Eval("Name") %>                
                    &nbsp/ &nbsp
                    <%#Eval("Price")%>$
                </h3>
            </div>
            <div style="font-size: small;">
                Posted <a href="" style="color: SteelBlue3;">11/21/2011</a> |
                <img src="../images/icons/comments.gif" alt="ff"><a href="" style="color: SteelBlue3;"> Comments (7)</a>
            </div>
            <br />
            <br />
            <p id="audioplayer_<%#Container.DataItemIndex %>">
                Alternative content</p>
            <script type="text/javascript">
                AudioPlayer.embed("audioplayer_<%#Container.DataItemIndex %>", { soundFile: '../<%#Eval("FilePath")%>' });  
            </script>
            <br />
            <br />
            <asp:Image ID="Image1" runat="server"  ImageUrl="~/images/office/soc.bmp"/>
            <br />
            <br />
            <br />
            <br />
        </ItemTemplate>
    </asp:ListView>
    <div id="ListT">
    <table>
             <tr>
            <td>
                Название: <br />        
            </td>
            <td>
            
                <asp:TextBox ID="TrackName" runat="server"></asp:TextBox>
            
            </td>
            <td>
            
                <asp:CheckBox ID="IsVisibleCheckBox" runat="server" Text="Скрыть трэк"/>
            
            </td>
        </tr>
        <tr>
            <td>
                Цена: <br />
            </td>
            <td>
            
                <asp:TextBox ID="Price" runat="server"></asp:TextBox>

                <asp:RequiredFieldValidator ID="PriceRequired" 
                                                runat="server" 
                                                ForeColor="Red"
                                                ControlToValidate="Price" 
                                                ValidationGroup="Login1" 
                                                Text="*" />
            </td>
            <td>
                <asp:CheckBox ID="IsDeletingCheckBox" Text="Удалить трэк" runat="server" />
            </td>
        </tr>
       
    </table>
    <br />
     <br/>
     <p align="center" style="border: 1px double black; width: 200px;">
        <asp:LinkButton ID="SaveChange" runat="server" onclick="SaveChange_Click">Сохранить изменения</asp:LinkButton>
     </p>
     <br />
     <asp:Label ID="InfoLabel" runat="server"  BackColor="White" ForeColor="Black"></asp:Label>
     <br />
     <br />
    </div>
</asp:Content>